package 笔试.B站;

import java.util.Arrays;
import java.util.List;

/**
 * @author:谢君臣
 * @Date:2021/9/13-19:18
 * @version:1.0
 * @function:
 */
public class Main02 {
    public int[] GetSortedTasks(int[][] taskLists) {
        int len = taskLists[0].length*taskLists.length;
        int res[] = new int[len];
        int n = 0;
        for (int i = 0; i < taskLists.length; i++) {
            for (int j = 0; j < taskLists[0].length; j++) {
                res[n++] = taskLists[i][j];
            }
        }
        Arrays.sort(res);
        return res;
    }
}
